import http from "@/api";

// 菜单树状列表
export const menuList = (params: any): Promise<any> => {
  return http.post("/menuMange/menuList", params);
};


//新增菜单
export const addMenu = (params: any): Promise<any> => {
  return http.post("/menuMange/newMenu", params);
};


//编辑菜单
export const editMenu = (params: any): Promise<any> => {
  return http.post("/menuMange/editMenu", params);
};

//删除菜单
export const deleteMenu = (params: any): Promise<any> => {
  return http.delete(`/menuMange/deleteMenu/${params}`);
};

//根据父级ID获取下一级菜单信息
export const getNextMenuList = (params: any): Promise<any> => {
  return http.get(`/menuMange/getTheNextLevelMenuInformation/${params}`);
};
